package com.ly.user_system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import com.ly.user_system.dto.UserAddressDTO;
import com.ly.user_system.detail.UserAddressDetail;


import com.ly.user_system.code.BaseEntity;

@TableName("user_address")
@Data
@AutoMappers({
@AutoMapper(target = UserAddressDTO.class),
@AutoMapper(target = UserAddressDetail.class)
})
public class UserAddress  extends BaseEntity  {


@TableField("user_id")
private Long userId;
@TableField("contact")
private String contact;
@TableField("phone")
private String phone;
@TableField("province")
private String province;
@TableField("city")
private String city;
@TableField("district")
private String district;
@TableField("address")
private String address;
@TableField("is_default")
private Boolean isDefault;
}